import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqSArenaCrossRewardHelper } from "./SeqSArenaCrossRewardHelper";
type int = number;
//class SArenaCrossRewards
    
    export  class SArenaCrossRewards extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SArenaCrossRewards();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeBool(this.isFinal);
            arg1.writeInt(this.process);
            arg1.writeInt(this.outLineNum);
            SeqSArenaCrossRewardHelper.write(arg1, this.rewards);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.isFinal = arg1.readBool();
            this.process = arg1.readInt();
            this.outLineNum = arg1.readInt();
            this.rewards = SeqSArenaCrossRewardHelper.read(arg1);
            return;
        }

        public /* const */_type: int=353;

        public /* var */isFinal: Boolean;

        public /* var */process: int;

        public /* var */outLineNum: int;

        public /* var */rewards: Array<any>;

        public static /* var */_regist: SArenaCrossRewards;
    }

            SArenaCrossRewards._regist = new SArenaCrossRewards(true);
        